﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace WindowsFormsApplication1
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            WebBrowser wb = new WebBrowser();            
            TabPage tab = new TabPage("002680");
            wb.Navigate("http://tuoitre.vn");
            wb.Dock = DockStyle.Fill;
            Button bt = new Button();
            bt.Location = new Point(8, 6);
            bt.Size = new Size(75, 23);
            bt.Text = "Close";
            bt.UseVisualStyleBackColor = true;
            tab.Controls.Add(bt);
            tab.Controls.Add(wb);
            tabControl1.TabPages.Add(tab);
            //tabControl1.TabPages.Insert(1, tab);
            tabControl1.SelectedTab = tab;
        }
    }
}
